package com.kws.system.controller.Payment;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.common.core.domain.R;
import com.kws.system.domain.TbInvoice;
import com.kws.system.domain.info.QueryInvoiceManagementInfo;
import com.kws.system.domain.vo.QueryInvoiceManagementRq;
import com.kws.system.service.InvoiceManagementService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>InvoiceManagementController</b>
 *
 * @description: InvoiceManagementController <br>
 * @date: 2024/11/19 17:43 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Api(tags = "发票管理模块")
@RestController
public class InvoiceManagementController {
    private static final Logger logger = LoggerFactory.getLogger(InvoiceManagementController.class);

    @Autowired
    private InvoiceManagementService invoiceManagementService;

    @ApiOperation("分页查询发票列表")
    @PostMapping("/query/invoiceManagement/page")
    public R<Page<QueryInvoiceManagementInfo>> queryInvoiceManagementPage(@RequestBody QueryInvoiceManagementRq rq){
        Page<QueryInvoiceManagementInfo> pageInfo = invoiceManagementService.queryInvoiceManagementPage(rq);
        return R.ok(pageInfo);
    }
}
